﻿using System;
using System.IO;

namespace FtpProvider
{
    class FtpItemInfo
    {
        public bool IsFolder;
        public string Path;
        public FtpDriveInfo Drive;
        public FtpProvider Provider;

        public Stream GetDownloadStream(bool binary = true, bool passive = false) 
        {
            return Provider.Download(Path, binary, passive);
        }
                
        public void Upload(Action<Stream> writer)
        {
            Provider.Upload(Path, writer);
        }
    }
}
